package com.eastcom.providor.service.impl;

import java.util.List;

import com.eastcom.bm.atom.Atom_NeType;
import com.eastcom.providor.dao.INeTypeDao;
import com.eastcom.providor.service.BaseService;
import com.eastcom.providor.service.INeTypeService;

public class NeTypeService extends BaseService implements INeTypeService {

	private INeTypeDao neTypeDao;

	public INeTypeDao getNeTypeDao() {
		return neTypeDao;
	}

	public void setNeTypeDao(INeTypeDao neTypeDao) {
		this.neTypeDao = neTypeDao;
	}

	public List<Atom_NeType> selectAllNeType() {
		try{
		    return neTypeDao.selectAllNeType();
		}
		catch(Exception e){
			log.error("NeTypeService selectAllNeType error", e);
		}
		
		return null;
	}

	public boolean saveNeType(Atom_NeType neType) {
		boolean ret=false;
		try {
			neTypeDao.saveNeType(neType);
			ret=true;
		} catch (Exception e) {
			log.error("NeTypeService.saveNeType exception", e);
		}
		return ret;
	}

}
